﻿<%@ Page Language="C#" MasterPageFile="~/View/Admin/Template.master" AutoEventWireup="true" CodeFile="QuanLyKhachHang.aspx.cs" Inherits="View_Admin_QuanLyKhachHang" Title="Quản lí Khách hàng" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        onrowdeleting="GridView1_RowDeleting" Width="520px" DataKeyNames="macn" 
        onrowcancelingedit="GridView1_RowCancelingEdit" 
        onrowediting="GridView1_RowEditing" onrowupdating="GridView1_RowUpdating">
        <Columns>
            <asp:BoundField DataField="tendn" HeaderText="Tên Đăng Nhập" ReadOnly="True" />
            <asp:BoundField DataField="tenkh" HeaderText="Tên Khách Hàng" ReadOnly="True" />
            <asp:BoundField DataField="diachikh" HeaderText="Địa Chỉ" ReadOnly="True" />
            <asp:BoundField DataField="sodt" HeaderText="Số ĐT" ReadOnly="True" />
            <asp:TemplateField HeaderText="Chức Năng">
                <ItemTemplate>
                    <asp:Label ID="Label1" runat="server" Text='<%# Eval("tenchucnang") %>'></asp:Label>
                </ItemTemplate>
                <EditItemTemplate>
                    <asp:DropDownList ID="DropDownList1" runat="server">
                    </asp:DropDownList>
                </EditItemTemplate>
            </asp:TemplateField>
            <asp:CommandField CancelText="Hủy" EditText="Sửa" ShowEditButton="True" 
                UpdateText="Cập Nhật" />
            <asp:CommandField DeleteText="Xóa" ShowDeleteButton="True" />
        </Columns>
    </asp:GridView>
</asp:Content>

